/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package local;

import java.security.NoSuchAlgorithmException;
import java.util.Collection;
import javax.ejb.Local;
import model.Role;
import model.SystemUser;

/**
 *
 * @author karennyq
 */
@Local
public interface SystemUserFacadeLocal {

    public Collection findAllSysUser(Integer page, Integer rows, String sort, String order);

    public int countAllSysUser(Integer page, Integer rows, String sort, String order);

    public boolean createSysUser(SystemUser su);

    public boolean checkForExistence(String email);

    public boolean checkForExistence(Long sys_user_id);

    public void deleteSysUser(Long sys_user_id);

    public SystemUser resetPwd(Long sys_user_id, String new_pwd);

    public SystemUser updateSysUser(Long sys_user_id, String email, Role role, String name);

    public SystemUser updateSysUser(SystemUser suInfo);

    public SystemUser getSysUser(Long sys_user_id);

    public SystemUser getCredentials(String username, String password) throws NoSuchAlgorithmException;
}
